POV-Ray : Newsgroups : povray.general : Color Passing in #macro : Re: Color Passing in #macro Server Time
10 Aug 2024 23:19:49 EDT (-0400)
  Re: Color Passing in #macro  
From: mr art
Date: 29 Nov 1999 11:42:04
Message: <3842ACC3.D70701F8@gci.net>
Well,
#declare Test=<0,0,0,0,0>;
#declare Test=<0,0,0,0>;
generates: error: Attempted to redefine colour identifier as 4d-vector
identifier.

But,
#declare Test=<0,0,0,0,0>;
#declare TestPig=pigment{rgb Test}
generates no error. My assumption is it discards what it doesn't need.
Nieminen Juha wrote:
> 
>   Does this mean that when povray expects a vector and it finds a 5-dimensional
> one, it promotes it to a 4-dimensional vector?
> 
> --
> main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
> ):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.